﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPageMain.Master"
    Inherits="System.Web.Mvc.ViewPage<estudent.Models.SPoste>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="InnerRightContent" runat="server">
    <h1>
        Ustvari nov zapis v šifrant pošt</h1>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Potrebni podatki</legend>
        <div class="editor-label">
            <%: Html.Label("Šifra pošte") %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.sPosta) %>
            <%: Html.ValidationMessageFor(model => model.sPosta, "Vnešena vrednost je neveljavna. Vnesti morate unikatno do štiri mestno številko!") %>
        </div>
        <div class="editor-label">
            <%: Html.Label("Ime pošte") %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.imePosta) %>
            <%: Html.ValidationMessageFor(model => model.imePosta, "Polje je obvezno.") %>
        </div>
        <p>
            <input type="submit" value="Ustvari" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("Nazaj na seznam", "Index") %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="JQueryContent" runat="server">
</asp:Content>
